﻿using System.Reflection;

namespace Basic.Repository.Abstract.Transactions;

/// <summary>
/// 操作单元接口
/// </summary>
public interface IUnitOfWorkManage
{
    int TranCount { get; }

    IDisposable Connection { get; }

    void BeginTran();
    void BeginTran(MethodInfo method);
    void CommitTran();
    void CommitTran(MethodInfo method);
    void RollbackTran();
    void RollbackTran(MethodInfo method);

}